package com.css.bjdt_core.user.service;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.css.bjdt_core.user.entity.DmgyRy;
import com.css.bjdt_core.user.entity.QxCzyxx;

@Service
public class UserService {

	@Autowired
	private Dao dao;

	//根据人员的登录名获得该登录的信息
	public QxCzyxx getAQxCzyxx(String yhm) {
		return dao.fetch(QxCzyxx.class, Cnd.where("YHM", "=", yhm));
	}

	public DmgyRy getUserDmgyRy(String ryId) {
		return dao.fetch(DmgyRy.class, Cnd.where("ID", "=", ryId));
	}
}
